import math
import os
import sys
from collections import Counter
from itertools import accumulate
import hashlib
from Solution import Solution

'''
{
    "request": "rdb_login",
    "seqno": 1,
    "name": "twin"
}
'''
'''
{
    "request": "rdb_auth",
    "seqno": 2,
    "vals": "C603C84FD8BCD20D6847A60E8D927599"
}
'''
'''
{
    "dt": 599.9848484848485,
    "request":"rdb_plotdata",
    "seqno": 4,
    "tags": ["直线侧压1#LSBM100000031", "端部侧压1#LSBM100000031", "直线侧压2#LSBM100000031", "端部侧压2#LSBM100000031"],
    "time_begin": "2024-12-12 07:55:14",
    "top": 660
}
'''
if __name__ == '__main__':

    # password = 'wtrh45g@89f4'
    # vals = '77427A7BDBC456513EC8A9904B45394E'
    # md5_password = vals + hashlib.md5(password.encode()).hexdigest().upper()
    # print(md5_password)
    # vals = hashlib.md5(md5_password.encode()).hexdigest().upper()
    # print(vals)
    # solution = Solution()
    # print(solution.minimumCost(6, 3, [2,3,2,3,1], [1, 2]))
    dp = [0] * 2023 * 6
    dp[0] = 1
    for i in range(2023):
        for j in range(1, 7):
            dp[i+j] += dp[i] / 6
    print(dp[2023])

